package cn.edu.ujn.lishlab3.service;

import java.util.List;


import cn.edu.ujn.lishlab3.dao.Product;
import cn.edu.ujn.util.Page;

public interface IProductService {
	
    int deleteByPrimaryKey(Integer id);

    int insert(Product row);

    int insertSelective(Product row);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product row);

    int updateByPrimaryKey(Product row);
    
    public List<Product> selectAll();
    
    public List<Product> selectProductList(Product product);
    
    public Integer selectProductListCount(Product product);
    //123
    
    public Page<Product> findProductList(Integer page, Integer rows, Integer id,
            String name,Double price);
    
    //与order表连接
    public List<Product> findProductById(Integer id);
    
    public int deleteProduct(Integer id);
}
